﻿#pragma once
#include <QString>
#include <QVector>
class CSVTool
{
public:
    explicit CSVTool(const QString& filename) :m_fileName(filename) {}

    // write CSV
    bool WriteCSV(const QVector<QString>& header, const QVector<QString>& keyValuePair, const char* codec);

    //read CSV
    QVector<QString> readCSV();

private:
    QString m_fileName;
};

